
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_java_awt_peer_qt_QtMenuPeer__
#define __gnu_java_awt_peer_qt_QtMenuPeer__

#pragma interface

#include <gnu/java/awt/peer/qt/QtMenuComponentPeer.h>
extern "Java"
{
  namespace gnu
  {
    namespace java
    {
      namespace awt
      {
        namespace peer
        {
          namespace qt
          {
              class QtMenuItemPeer;
              class QtMenuPeer;
              class QtToolkit;
          }
        }
      }
    }
  }
  namespace java
  {
    namespace awt
    {
        class Menu;
        class MenuItem;
    }
  }
}

class gnu::java::awt::peer::qt::QtMenuPeer : public ::gnu::java::awt::peer::qt::QtMenuComponentPeer
{

public:
  QtMenuPeer(::gnu::java::awt::peer::qt::QtToolkit *, ::java::awt::Menu *);
public: // actually protected
  virtual void init();
  virtual void setup();
public: // actually package-private
  virtual void addItems();
private:
  void fireClick();
  void allowTearOff();
  void insertSeperator();
  void insertItem(::gnu::java::awt::peer::qt::QtMenuItemPeer *);
  void insertMenu(::gnu::java::awt::peer::qt::QtMenuPeer *);
  void delItem(jlong);
  void add(jlong);
public:
  virtual void addItem(::java::awt::MenuItem *);
  virtual void addSeparator();
  virtual void delItem(jint);
  virtual void disable();
  virtual void enable();
  virtual void setEnabled(jboolean);
  virtual void setLabel(::java::lang::String *);
public: // actually package-private
  ::java::util::Vector * __attribute__((aligned(__alignof__( ::gnu::java::awt::peer::qt::QtMenuComponentPeer)))) items;
  jboolean itemsAdded;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_java_awt_peer_qt_QtMenuPeer__
